import { BaseData } from "@shared/models/base-data";

/**
 * 示例数据模型
 */
export interface DemoUser extends BaseData {
    email: string;
    role: string;
    status: 'active' | 'inactive';
  }
  
// 模拟数据（在实际应用中，这应该来自服务）
export const mockData: DemoUser[] = [
    {
      id: '1',
      name: '张三',
      email: 'zhangsan@example.com',
      role: '管理员',
      status: 'active',
      createdTime: Date.now() - 86400000 * 10
    },
    {
      id: '2',
      name: '李四',
      email: 'lisi@example.com',
      role: '用户',
      status: 'active',
      createdTime: Date.now() - 86400000 * 5
    },
    {
      id: '3',
      name: '王五',
      email: 'wangwu@example.com',
      role: '用户',
      status: 'inactive',
      createdTime: Date.now() - 86400000 * 2
    },
    {
      id: '4',
      name: '赵六',
      email: 'zhaoliu@example.com',
      role: '编辑',
      status: 'active',
      createdTime: Date.now() - 86400000 * 1
    },
    {
      id: '5',
      name: '孙七',
      email: 'sunqi@example.com',
      role: '用户',
      status: 'active',
      createdTime: Date.now()
    },
    {
      id: '6',
      name: '周八',
      email: 'zhouba@example.com',
      role: '编辑',
      status: 'inactive',
      createdTime: Date.now() - 86400000 * 20
    },
    {
      id: '7',
      name: '吴九',
      email: 'wujiu@example.com',
      role: '用户',
      status: 'active',
      createdTime: Date.now() - 86400000 * 15
    },
    {
      id: '8',
      name: '郑十',
      email: 'zhengshi@example.com',
      role: '管理员',
      status: 'active',
      createdTime: Date.now() - 86400000 * 8
    }
  ];
